package game.entities;

import game.InputHandler;
import game.level.Level;

public abstract class Projectile extends Entity{

	protected int velX;
	protected int velY;
	protected int ang;
	protected int scale = 1;
	public Projectile(Level level,int vel, int ang,int x, int y, InputHandler input) {
		super(level);
		this.velX = (int)(Math.cos(ang*Math.PI/180)*vel);
		this.velY = (int)(Math.sin(ang*Math.PI/180)*vel);
		this.ang = ang;
		this.x = x;
		this.y = y;
		hasHitbox = false;
		isEnemy = false;
	}
	public void move(double velX, double velY){
		x += velX;
		y += velY;
	}
	public abstract boolean hasCollided(int xa, int ya);
}
